package com.example.service.webhook.business.security.entity;

import com.example.service.webhook.repository.base.Saveable;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

public class InsuranceRecordEntity implements Saveable {
    private Long id;
    private String userId;
    // 用户信息id
    private String userInfoId;
    // 地区编码
    private String areaCode;
    // 参保类型
    private String insuranceType;
    // 缴存时间
    private String dealTime;
    // 缴纳月份
    private String month;
    // 缴至月份(截止)
    private String monthEnd;
    // 缴存单位
    private String corporationName;
    // 描述
    private String description;
    // 基数
    private Integer baseNumber;
    // 单位缴存
    private Integer corporationPayment;
    // 个人缴存
    private Integer personalPayment;
    // 缴存总额
    private Integer amount;
    // 缴存标记
    private String status;
    // 单位缴存比例
    private String corporationScale;
    // 个人缴存比例
    private String customerScale;

	/**
	 * 养老保险	1
	 * 医疗保险	2
	 * 工伤保险	3
	 * 生育保险	4
	 * 失业保险	5
	 * 大病保险	6
	 * 其他保险	0
	 * 20171019接口升级，新增字段，险种编号
	 */
	private Integer insuranceCode;

    private Date createTime;
    private Date lastModifyTime;

    private static final String[] keyColumns = { "id" };
    private static final String   tableName  = "t_insurance_record";

    @Override
    public String getTableName() {
        return tableName;
    }

    @Override
    public String[] getKeyColumns() {
        return keyColumns;
    }

    @Override
    public String getPrimaryVal() {
        return String.valueOf(id);
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserInfoId() {
		return userInfoId;
	}

	public void setUserInfoId(String userInfoId) {
		this.userInfoId = userInfoId;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getInsuranceType() {
		return insuranceType;
	}

	public void setInsuranceType(String insuranceType) {
		this.insuranceType = insuranceType;
	}

	public String getDealTime() {
		return dealTime;
	}

	public void setDealTime(String dealTime) {
		this.dealTime = dealTime;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public String getMonthEnd() {
		return monthEnd;
	}

	public void setMonthEnd(String monthEnd) {
		this.monthEnd = monthEnd;
	}

	public String getCorporationName() {
		return corporationName;
	}

	public void setCorporationName(String corporationName) {
		this.corporationName = corporationName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getBaseNumber() {
		return baseNumber;
	}

	public void setBaseNumber(Integer baseNumber) {
		this.baseNumber = baseNumber;
	}

	public Integer getCorporationPayment() {
		return corporationPayment;
	}

	public void setCorporationPayment(Integer corporationPayment) {
		this.corporationPayment = corporationPayment;
	}

	public Integer getPersonalPayment() {
		return personalPayment;
	}

	public void setPersonalPayment(Integer personalPayment) {
		this.personalPayment = personalPayment;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCorporationScale() {
		return corporationScale;
	}

	public void setCorporationScale(String corporationScale) {
		this.corporationScale = corporationScale;
	}

	public String getCustomerScale() {
		return customerScale;
	}

	public void setCustomerScale(String customerScale) {
		this.customerScale = customerScale;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public Integer getInsuranceCode() {
		return insuranceCode;
	}

	public void setInsuranceCode(Integer insuranceCode) {
		this.insuranceCode = insuranceCode;
	}
}
